<script>
import { useUserStore } from '@/stores/user'

export default {
	onLaunch: function() {
		console.log('App Launch')
		
		// 恢复用户登录状态
		const userStore = useUserStore()
		userStore.restoreFromStorage()
		
		// 不再自动跳转到登录页面，允许用户直接进入首页预览
		console.log('用户登录状态:', userStore.isAuthenticated)
	},
	onShow: function() {
		console.log('App Show')
	},
	onHide: function() {
		console.log('App Hide')
	},
}
</script>

<style>
	@import "common/style/common-style.scss";
</style>